import './assets/main.scss'

import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router'
import { createPinia } from 'pinia'
const pinia  = createPinia();

import ElementPlus from 'element-plus'
//导入element-plus的样式
import 'element-plus/dist/index.css'
//引入中文模板，使分页插件显示中文
import locale from 'element-plus/dist/locale/zh-cn.js'

//导入持久化Pinia插件
import { createPersistedState } from 'pinia-persistedstate-plugin'
const persist = createPersistedState()
const app = createApp(App);

pinia.use(persist);//下一步要在src/stores/token.js文件中开启持久化（定义状态Store时指定持久化配置参数）,不用也许
app.use(ElementPlus,{locale});
app.use(router);
app.use(pinia);
//挂载
app.mount('#app');
